<% if first %>
  <tr>
    <th>Event Name</th>
    <th>&nbsp;&nbsp;</th><!-- ##TODO: clean up -->
    <th>Start</th>
    <th>End</th>
    <th>&nbsp;&nbsp;</th><!-- ##TODO: clean up -->
    <!-- ##TODO: clean up -->
    <th>Game Name</th>
      <th>Team A (league)</th>          <!-- (league) really only makes sense for non-intra-league bouts -->
      <th>Team A final score</th>
      <th>&nbsp;&nbsp;</th><!-- ##TODO: clean up -->
      <th>Team B (league)</th>
      <th>Team B final score</th>
      <!-- ##TODO: for p in g.intervals
        <th>Period #{n}</th>
        <th>Team A score</th>
        <th>Team B score</th>
      -->
  </tr>
<% end %>

<% for g in show_event.games %>
  <tr>
  <td><%=h show_event.name if first %></td>
  <td></td><!-- ##TODO: clean up -->
  <td><%=h show_event.start_date.strftime("%m/%d/%y") if first && show_event.start_date %></td>
  <td><%=h show_event.end_date.strftime("%m/%d/%y") if first && show_event.end_date %></td>
  <td></td><!-- ##TODO: clean up -->
  <% first = false %>
  <td><%=h g.name %></td>

  <% tA = g.teams[0] %>
  <% sA = g.scores[0] %>
  <% tB = g.teams[1] %>
  <% sB = g.scores[1] %>
  <td><%= link_to tA.name, tA %></td>
  <td><%=h sA.points %></td>

  <td></td><!-- ##TODO: clean up -->
  <td><%= link_to tB.name, tB %></td> <!-- could also be s.identifier,  (why is that there?) -->
  <td><%=h sB.points %></td>
  </tr>
<% end %>

<!-- vi:ts=2:et:sw=2:
-->

